import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import Index from '@/components/Index'
import News from '@/components/News'
import Introduce from '@/components/Introduce'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Hello',
      component: Hello,
      children: [
        {
          path: 'index',
          name: 'Index',
          component: Index
        },
        {
          path: 'news',
          name: 'News',
          component: News
        },
        {
          path: 'introduce',
          name: 'Introduce',
          component: Introduce
        }
      ]
    }
  ]
})
